<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="/static/css/index.css">
    <th:block th:replace="include/css"/>

    <title>首页</title>
</head>
<body>
<th:block th:replace="include/header:: header"/>
<div class="main">
    <div class="left">
        <div class="data-list">
            <div class="part-title">
                <a href="/tp" class="part" target="_blank">讨论区</a>
            </div>
            <div class="data-item" th:each="v,l:${topics.list}" th:if="${l.index lt 10}">
                <a th:href="'/tp/'+${v.topicId}" target="_blank" class="tit" th:text="${v.title}">11</a>
                <span class="time" th:text="${#strings.defaultString(#dates.format(v.createTime,'yyyy-MM-dd HH:mm:ss'),'')}+ ' By ' +${v.userName}"></span>
                <div class="read" th:text="${v.commentCount}+'评/'+${v.readCount}+'阅'">0评/0阅</div>
            </div>
        </div>
        <div class="data-list">
            <div class="part-title">
                <a href="/knowledge" class="part" target="_blank">知识库</a>
            </div>
            <div class="data-item" th:each="v,l:${knowledges.list}" th:if="${l.index lt 10}">
                <a th:href="'/knowledge/'+${v.topicId}" target="_blank" class="tit" th:text="${v.title}"></a>
                <span class="time" th:text="${#temporals.format(v.createTime,'yyyy-MM-dd HH:mm:ss')}+ ' By ' +${v.userName}"></span>
                <div class="read" th:text="${v.commentCount}+'评/' +${v.readCount}+'阅'">0评/0阅</div>
            </div>
        </div>
        <div class="data-list">
            <div class="part-title">
                <a href="/ask" class="part" target="_blank">问答</a>
            </div>
            <div class="data-item" th:each="v,l:${asks.list}" th:if="${l.index lt 10}">
                <a th:href="'/ask/'+${v.askId}" target="_blank" class="tit" th:text="${v.title}"></a>
                <span class="time" th:text="${#temporals.format(v.createTime,'yyyy-MM-dd HH:mm:ss')}+ ' By ' +${v.userName}"></span>
                <div class="read" th:text="${v.commentCount}+'评/' +${v.readCount}+'阅'">0评/0阅</div>
            </div>
        </div>
    </div>
    <div class="right">

        <div class="part-title">
            <a href="/blog" class="part">最新博文</a>
        </div>
        <div class="data-item" th:each="blog:${blogs.list}">
            <a th:href="'/blog/detail/'+${blog.blogId}" target="_blank"
               class="blog-tit" th:text="${blog.title}"></a>
            <span class="blog-time">
                <span class="blog-time-name">by&nbsp;&nbsp;<th:block th:text="${blog.userName}"/></span>
                <span class="blog-time-time"
                      th:text="${#temporals.format(blog.createTime,'yyyy-MM-dd HH:mm:ss')}"></span>
                <div class="clear"></div>
            </span>
        </div>
        <div class="part-title">
            <a href="javascript:;" class="part">常用工具</a>
        </div>
        <div class="home-tools">
            <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" target="_blank">JDK下载</a>
            <a href="http://dlsw.baidu.com/sw-search-sp/soft/ea/12585/mysql_installer_community_V5.6.21.1_setup.1418020972.msi"
               target="_blank">MySQL下载</a>
            <a href="http://c1.cr173.com/xl/JDK_API_1_6_zh_CN.zip" target="_blank">JDK6中文文档</a>
            <a href="http://pan.baidu.com/s/1kTyYOsf" target="_blank">Jquery中文文档</a>
            <a href="http://eclipse.stu.edu.tw/technology/epp/downloads/release/mars/1/eclipse-jee-mars-1-win32.zip"
               target="_blank">Eclipse(32位)</a>
            <a href="http://eclipse.stu.edu.tw/technology/epp/downloads/release/mars/1/eclipse-jee-mars-1-win32.zip"
               target="_blank">Eclipse(64位)</a>
            <a href="https://pan.baidu.com/s/1o6soaj4" target="_blank">Sqlyog破解版(64位)</a>
        </div>
    </div>
</div>


<div class="clear"></div>
<th:block th:replace="include/footer:: footer"/>
<th:block th:replace="include/top"/>
</body>
</html>